package com.srit.map.business.bean;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class CompanySearch { 
	/**
	 * company 表单查找 po
	 */
	private int id;
	private String name;
	private String fund_min;  //注册资金下限
	private String fund_max;  //注册资金上限
	private Date fund_startTime; //注册开始时间
	private String fund_startTimeStr;//注册开始时间String类型
	private Date fund_endTime; 		//
	private String fund_endTimeStr;
	private String address;				//地址
	private String area;				//辖区
	private String company_type;		//企业类型
	private String business_type;		//所属行业
	private String company_property;
	
	SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getFund_min() {
		return fund_min;
	}
	public void setFund_min(String fund_min) {
		this.fund_min = fund_min;
	}
	public String getFund_max() {
		return fund_max;
	}
	public void setFund_max(String fund_max) {
		this.fund_max = fund_max;
	}
	public Date getFund_startTime() {
		return fund_startTime;
	}
	public void setFund_startTime(Date fund_startTime) {
		this.fund_startTime = fund_startTime;
	}
	public String getFund_startTimeStr() {
		return fund_startTimeStr;
	}
	public void setFund_startTimeStr(String fund_startTimeStr) {
		this.fund_startTimeStr = fund_startTimeStr;
	}
	public Date getFund_endTime() {
		return fund_endTime;
	}
	public void setFund_endTime(Date fund_endTime) {
		this.fund_endTime = fund_endTime;
	}
	public String getFund_endTimeStr() {
		return fund_endTimeStr;
	}
	public void setFund_endTimeStr(String fund_endTimeStr) {
		this.fund_endTimeStr = fund_endTimeStr;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	public String getCompany_type() {
		return company_type;
	}
	public void setCompany_type(String company_type) {
		this.company_type = company_type;
	}
	public String getBusiness_type() {
		return business_type;
	}
	public void setBusiness_type(String business_type) {
		this.business_type = business_type;
	}
	/**
	 * 把字符串转化成日期
	 * @throws ParseException
	 */
	public void updateDate() throws ParseException{
		if(fund_startTime!=null)
			this.fund_startTime=format.parse(fund_startTimeStr);
		if(fund_endTime!=null)
			this.fund_endTime=format.parse(fund_endTimeStr);
	}
	
	/**
	 * 把日期转化成字符串
	 * @throws ParseException
	 */
	public void updateDateStr() throws ParseException{
		if(fund_startTimeStr!=null)
			this.fund_startTimeStr=format.format(fund_startTime);
		if(fund_endTimeStr!=null)
			this.fund_endTimeStr=format.format(fund_endTime);
	}
	public String getCompany_property() {
		return company_property;
	}
	public void setCompany_property(String company_property) {
		this.company_property = company_property;
	}
	

}
